package edu.university.demo.system.entit;

import javax.persistence.Entity;
import javax.persistence.Table;
/**
 * 
 *歌曲的日播放量丶周播放量丶月播放量丶收藏量
 */
@Entity
@Table(name = "pt_song_info")
public class SongInfo extends IdEntity{
	
	private Long dayAmout = 0l;
	
	private Long weekAmout = 0l;
	
	private Long monthAmout = 0l;
	
	private Long collectAmout = 0l;
	
	public Long getDayAmout() {
		return dayAmout;
	}

	public void setDayAmout(Long dayAmout) {
		this.dayAmout = dayAmout;
	}

	public Long getWeekAmout() {
		return weekAmout;
	}

	public void setWeekAmout(Long weekAmout) {
		this.weekAmout = weekAmout;
	}

	public Long getMonthAmout() {
		return monthAmout;
	}

	public void setMonthAmout(Long monthAmout) {
		this.monthAmout = monthAmout;
	}
	
	public Long getCollectAmout() {
		return collectAmout;
	}
	
	public void setCollectAmout(Long collectAmout) {
		this.collectAmout = collectAmout;
	}

	public void increasePlayTime() {
		
		this.dayAmout = this.dayAmout + 1;
		this.weekAmout = this.weekAmout + 1;
		this.monthAmout = this.monthAmout + 1;
	}
}
